<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->

<title>addchstr</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_002_001_212">&nbsp;</a>NAME</h4><blockquote>
addchstr, addchnstr, mvaddchstr, mvaddchnstr, mvwaddchstr, mvwaddchnstr
waddchstr, waddchnstr - add string of single-byte characters and
renditions to a window
</blockquote><h4><a name = "tag_002_001_213">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;<a href="curses.h.html">curses.h</a>&gt;

int addchstr(const chtype *<i>chstr</i>);

int addchnstr(const chtype *<i>chstr</i>, int <i>n</i>);

int mvaddchstr(int <i>y</i>, int <i>x</i>, const chtype *<i>chstr</i>);

int mvaddchnstr(int <i>y</i>, int <i>x</i>, const chtype *<i>chstr</i>, int <i>n</i>);

int mvwaddchstr(WINDOW *<i>win</i>, int <i>y</i>, int <i>x</i>, const chtype *<i>chstr</i>);

int mvwaddchnstr(WINDOW *<i>win</i>, int <i>y</i>, int <i>x</i>, const chtype *<i>chstr</i>,
                 int <i>n</i>);

int waddchstr(WINDOW *<i>win</i>, const chtype *<i>chstr</i>);

int waddchnstr(WINDOW *<i>win</i>, const chtype *<i>chstr</i>, int <i>n</i>);
</code>
</pre>
</blockquote><h4><a name = "tag_002_001_214">&nbsp;</a>DESCRIPTION</h4><blockquote>
These functions overlay the contents of the current or specified window,
starting at the current or specified position, with the contents of the array
pointed to by
<i>chstr</i>
until a null
<b>chtype</b>
is encountered in the array pointed to by
<i>chstr</i>.
<p>
These functions do not change the cursor position.
These functions do not perform special-character processing.
These functions do not perform wrapping.
<p>
The
<i>addchnstr()</i>,
<i>mvaddchnstr()</i>,
<i>mvwaddchnstr()</i>
and
<i>waddchnstr()</i>
functions copy at most <i>n</i> items, but no more than will fit on the
current or specified
line.
If <i>n</i>&nbsp;is -1 then the whole string is copied, to the maximum number
that fit on the
current or specified
line.
</blockquote><h4><a name = "tag_002_001_215">&nbsp;</a>RETURN VALUE</h4><blockquote>
Upon successful completion, these functions return OK.  Otherwise, they return
ERR.
</blockquote><h4><a name = "tag_002_001_216">&nbsp;</a>ERRORS</h4><blockquote>
No errors are defined.
</blockquote><h4><a name = "tag_002_001_217">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
These functions are only guaranteed to operate reliably on character sets in
which each character fits into a single byte, whose attributes can be
expressed using only constants with the A_ prefix.
</blockquote><h4><a name = "tag_002_001_218">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="addch.html">addch()</a></i>,
<i><a href="add_wch.html">add_wch()</a></i>,
<i><a href="add_wchstr.html">add_wchstr()</a></i>,
<i><a href="curses.h.html">&lt;curses.h&gt;</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
